package com.fc.redap.service;

import java.util.List;
import java.util.Map;

public interface BaseService<T> {

    T queryObject(Long id);

    void save(T entity);

    void update(T entity);

    void delete(Long id);

    void deleteBatch(Long[] id);

    List<T> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

}
